package com.cjyd.hrjb.job;

import com.cjyd.hrjb.service.AccessTokenService;
import com.cjyd.hrjb.utils.SpringContextHolder;
import lombok.extern.slf4j.Slf4j;

/**
 * Created fei wo by 2020/4/5
 */
@Slf4j
public class CronSyncAccessToken {

    public static void syncAccessToken(){
        log.info("定时任务....");
        AccessTokenService accessTokenService = SpringContextHolder.getBean(AccessTokenService.class);
        accessTokenService.cornSyncToken();
    }
}
